package com.tzr.bean;

import java.util.Objects;

public class User {

    private String uname;
    private String upassword;

    @Override
    public String toString() {
        return "User{" +
                "uname='" + uname + '\'' +
                ", upassword='" + upassword + '\'' +
                '}';
    }

    public User(String uname, String upassword, String pinglun, int zan) {

        this.uname = uname;
        this.upassword = upassword;
    }






    public User() {
    }



    public String getUname() {
        return uname;
    }

    public void setUname(String uname) {
        this.uname = uname;
    }

    public String getUpassword() {
        return upassword;
    }

    public void setUpassword(String upassword) {
        this.upassword = upassword;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        User user = (User) o;
        return Objects.equals(uname, user.uname) &&
                Objects.equals(upassword, user.upassword);
    }

    @Override
    public int hashCode() {
        return Objects.hash(uname, upassword);
    }
}
